@echo off
set /p user=Enter the username (e.g., root): 
set /p ip=Enter the server IP address: 

scp C:\Users\%USERNAME%\.ssh\id_rsa.pub %user%@%ip%:/tmp/temp_key && ssh %user%@%ip% "cat /tmp/temp_key >> ~/.ssh/authorized_keys && rm /tmp/temp_key"
